import request from "@/utils/request";

export const queryBarData = (params) => {
  return request({
    url: "/preventionHiddenRegister/countHidden",
    method: "get",
    params,
  });
};

export const countTaskDayWeekMonth = (params) => {
  return request({
    url: "/preventionCheckTask/countTaskDayWeekMonth",
    method: "get",
    params,
  });
};

export const countHiddenDayWeekMonth = (params) => {
  return request({
    url: "/preventionCheckTask/countHiddenDayWeekMonth",
    method: "get",
    params,
  });
};

export const getPrevWeekHidden = (params) => {
  return request({
    url: "/preventionPlanTask/toCountHiddenRate",
    method: "get",
    params,
  });
};

export const getMyPcqk = (params) => {
  return request({
    url: "/preventionPlanTask/toCountMyTask",
    method: "get",
    params,
  });
};

export const getHiddenWaring = (params) => {
  return request({
    url: "/preventionPlanTask/toCountHiddenRemind",
    method: "get",
    params,
  });
};

export const HiddenCondition = (params) => {
  return request({
    url: "/preventionPlanTask/toCountHiddenCondition",
    method: "get",
    params,
  });
};

export const countDept = (params) => {
  return request({
    url: "/inspectionPlanTaskCount/countDept",
    method: "get",
    params,
  });
};
export const countPrewWeek = (params) => {
  return request({
    url: "/preventionPlanTask/toCountTaskSituation",
    method: "get",
    params,
  });
};
export const toCountDeptHiddenPC = (params) => {
  return request({
    url: "/preventionPlanTask/toCountDeptHiddenPC",
    method: "get",
    params,
  });
};

export const toCountDeptHiddenZG = (params) => {
  return request({
    url: "/preventionPlanTask/toCountDeptHiddenZG",
    method: "get",
    params,
  });
};

export const toCountUnit = (params) => {
  return request({
    url: "/preventionPlanTask/toCountUnit",
    method: "get",
    params,
  });
};

// new 2023-10-16
export const countTop = () => {
  return request({
    url: "/preventionPlanTask/countTop",
    method: "get"
  });
};
//超时列表 点击 已超时任务 跳转页面
export const getCheckTaskByState = (params) => {
  return request({
    url: "/preventionPlanTask/getCheckTaskByState",
    method: "get",
    params,
  });
};
export const countCheckTaskWeek = (params) => {
  return request({
    url: "/preventionPlanTask/countCheckTaskWeek",
    method: "get",
    params,
  });
};
export const countCheckTaskByUnit = (params) => {
  return request({
    url: "/preventionPlanTask/countCheckTaskByUnit",
    method: "get",
    params,
  });
};
export const countHiddenByState = () => {
  return request({
    url: "/preventionPlanTask/countHiddenByState",
    method: "get"
  });
};
export const countHiddenByDevice = (params) => {
  return request({
    url: "/preventionPlanTask/countHiddenByDevice",
    method: "get",
    params,
  });
};
export const countHiddenByDeviceAlert = (params) => {
  return request({
    url: "/preventionPlanTask/countHiddenByDeviceAlert",
    method: "get",
    params,
  });
};

